#pragma once
#include <string>
using namespace std;

namespace MemorySpace
{
	class Player
	{
	private:
		string name;
		int score;

	public:
		Player();
		Player(string name);
		~Player();

		//Returns the players score
		int getScore(){ return this->score; }
		//Sets the players score
		void setScore(int score){ this->score = score; }
		//Returns the players name
		string getName(){ return this->name; }

		//Operator overloading used to sort players
		friend bool operator<(const Player &l, const Player &r){ return l.score > r.score; }
	};
}